﻿@{
    Layout = null;
}

<style type="text/css">
    table.hovertable {
        font-family: verdana,arial,sans-serif;
        font-size: 11px;
        color: #333333;
        border-width: 1px;
        border-color: #999999;
        border-collapse: collapse;
    }

        table.hovertable th {
            background-color: #c3dde0;
            border-width: 1px;
            padding: 8px;
            border-style: solid;
            border-color: #a9c6c9;
        }

        table.hovertable tr {
            background-color: #d4e3e5;
        }

        table.hovertable td {
            border-width: 1px;
            padding: 8px;
            border-style: solid;
            border-color: #a9c6c9;
        }
</style>

<div>
    <table class="hovertable">
        <tr>
            <th colspan="7">角色名</th>
        <tr>
        <tr onmouseover="this.style.backgroundColor='#ffff66';" onmouseout="this.style.backgroundColor='#d4e3e5';">
            @{
                int cnt = 0;
                HashSet<string> userrolesname = ViewBag.UserRolesName;

                foreach (var userrolename in userrolesname)
                {
                    if (cnt++ % 7 == 0)
                    {
                        @:</tr><tr onmouseover="this.style.backgroundColor='#ffff66';" onmouseout="this.style.backgroundColor='#d4e3e5';">
                    }

                    @:                    <td>
                        @userrolename

                        @:                    </td>
                            }
                            @:                        </tr>






            }


        </table>

    </div>






  










